﻿(function () {
  'use strict';

  var app = angular.module('ng4model', [
      // Angular modules 
      'ngAnimate',        // animations
      'ngRoute',          // routing
      'ngSanitize',       // sanitizes html bindings (ex: sidebar.js)

      // Custom modules 
      'common',           // common functions, logger, spinner
      'common.bootstrap', // bootstrap dialog wrapper functions

      // 3rd Party Modules
      'ui.bootstrap',     // ui-bootstrap (ex: carousel, pagination, dialog)
      'ui.bootstrap.tabs',// tabs
      'ui.router'         // state machine router for nested views

      // Breeze
      //'breeze.directives',

      // Kendo UI
      //'kendo.directives'
  ]);

  // Handle routing errors and success events
  app.run(['$route', function ($route) {
    // Include $route to kick start the router.
  }]);
})();